package com.example.demo.aop;

/**
 * @author yuwc
 * @description AOP获取信息实体类
 * @data 2019/5/16 0016上午 11:00
 * 备注：先弄这么多，后续可能需要设计存表 做统计
 */
public class AopRecord {

    private Long startTime;

    private Long endTime;

    public Long getUseTime() {
        Long res = 0L;
        if (startTime != null && endTime != null) {
            res = endTime - startTime;
        }
        return res;
    }

    public Long getStartTime() {
        return startTime;
    }

    public void setStartTime(Long startTime) {
        this.startTime = startTime;
    }

    public Long getEndTime() {
        return endTime;
    }

    public void setEndTime(Long endTime) {
        this.endTime = endTime;
    }
}
